# 定义变量：列表
login_data1 = [
["13800000001", "123456", "8888", "登录成功"],
["13800000001", "1234", "8888", "密码错误"],
["13800000001", "123456", "0000", "验证码错误"]
]
# 定义变量：元组
login_data2 = (
("13800000001", "123456", "8888", "登录成功"),
("13800000001", "1234", "8888", "密码错误"),
("13800000001", "123456", "0000", "验证码错误")
)
# 定义变量：列表元组
login_data3 = [
("13800000001", "123456", "8888", "登录成功"),
("13800000001", "1234", "8888", "密码错误"),
("13800000001", "123456", "0000", "验证码错误")
]
# 定义变量：列表字典
login_data4 = [
{"username": "13800000001", "password": "123456", "code": "8888", "result": "登录成功"},
{"username": "13800000001", "password": "666666", "code": "8888", "result": "密码错误"},
{"username": "13800000001", "password": "123456", "code": "0000", "result": "验证码错误"}
]

# 遍历数据3
# for j in login_data3:
    # print(f"用户名：{j[0]} 密码：{j[1]} 验证码：{j[2]} 期望结果：{j[2]}")
for j in login_data4:
    # print(j)
    print(f"用户名：{j.get('username')} 密码：{j.get('password')} "
          f"验证码：{j.get('code')} 预期结果：{j.get('result')}")